//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Spreadsheet.Extensibility;

namespace OpenLS.Spreadsheet.StandardAddIn
{
    struct CellRelativeAddress
    {
        public int Row { get; set; }
        public int Column { get; set; }
        public static CellRelativeAddress Diff (IRange r1, IRange r2)
        {
            return new CellRelativeAddress
            {
                Row = r1.RowIndex - r2.RowIndex,
                Column = r1.ColumnIndex - r2.ColumnIndex
            }
            ;
        }
    }
       
}
